/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.awt.Panel;
import java.util.List;

/**
 *
 * @author Canh
 */
public class ComponentsUtil {

    public static void resetCompomemts(Panel p) {

    }

    public static int findIndex(List l, Object obj, String method) {
        for (int i = 0; i < l.size(); i++) {
            if (Reflection.readMethodValue(l.get(i), method).equals(obj)) {
                return i;
            }
        }
        return -1;
    }
}
